<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich">

<body>

<ui:composition template="template/template.xhtml">

    <ui:define name="left">
        <h:form>
            <h:panelGrid columns="1">
            	<s:link view="/songList.xhtml" propagation="none">Song List</s:link>
            	<s:link view="/artistList.xhtml" propagation="none">Artist List</s:link>
            	<s:link view="/artistDetails.xhtml" propagation="none">
                    <f:verbatim>Artist:&amp;nbsp;</f:verbatim>
                    <h:outputText value="#{songHome.instance.artist.name}"/>
                    <f:param name="artistId" value="#{songHome.instance.artist.id}"/>
            	</s:link>
				<s:link view="/songForm.xhtml" propagation="none">
					<f:param name="songId" value="#{songHome.instance.id}" />
					<f:verbatim>Edit song</f:verbatim>
				</s:link>
            </h:panelGrid>
        </h:form>
    </ui:define>

    <ui:define name="content">
        <h1><f:verbatim>Artist:&amp;nbsp;</f:verbatim><h:outputText value="#{songHome.instance.artist.name}"/></h1>
        <h1><f:verbatim>Song title:&amp;nbsp;</f:verbatim><h:outputText value="#{songHome.instance.title}"/></h1>

        <pre><h:outputText value="#{songHome.instance.lyrics}"/></pre>
    </ui:define>

</ui:composition>

</body>
</html>
